package org.nuonuo.sdk.model.req;

import org.nuonuo.sdk.valid.Validator;

import javax.validation.constraints.NotNull;

/**
 * @Version 1.0
 * @Author az
 * @Date 2024-04-08 14:36:40
 * @ClassName InvoiceCancellationReq
 * @Description 发票作废
 */
public class InvoiceCancellationReq extends Validator {

    /**
     * 发票流水号
     */
    @NotNull(message = "发票流水号必填")
    private String invoiceId;

    /**
     * 发票代码
     */
    @NotNull(message = "发票代码必填")
    private String invoiceCode;

    /**
     * 发票号码
     */
    @NotNull(message = "发票号码必填")
    private String invoiceNo;

    /**
     * 作废原因（全电纸票时需要传（1:销货退回;2:开票有误;3:服务中止;4:其他），默认 2）
     */
    private String invalidReason;
    /**
     * 其他作废原因详情（全电纸票且作废原因选择4-其他时需要传）
     */
    private String specificReason;

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getInvoiceCode() {
        return invoiceCode;
    }

    public void setInvoiceCode(String invoiceCode) {
        this.invoiceCode = invoiceCode;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo;
    }

    public String getInvalidReason() {
        return invalidReason;
    }

    public void setInvalidReason(String invalidReason) {
        this.invalidReason = invalidReason;
    }

    public String getSpecificReason() {
        return specificReason;
    }

    public void setSpecificReason(String specificReason) {
        this.specificReason = specificReason;
    }
}
